<h3>用户列表</h3>
<div class="mainmsg">
    <table border="0" cellspacing="0" cellpadding="0" class="msgtable">
        <thead>
            <tr>
                <th width="50%">
                    用户名
                </th>
                <th width="10%">
                    状态
                </th>
                <th width="40%">
                    操作
                </th>
            </tr>
        </thead>
        <tbody>
            <?php 
            foreach ($userlist as $v):

            ?>
            <tr>
                <td align="left" width="50%">
                    <?php echo $v['Tuser']['f_uname']; ?>
                </td>
                <td align="left" width="10%">
                    <?php echo $v['Tuser']['f_status'] == 1 ? '启用' : '停用'; ?>
                </td>
                <td align="left" width="40%">
                    <button type="button" onclick="window.location='/tuser/stopuser/<?php echo $v['Tuser']['id'];?>'">
                        <?php echo $v['Tuser']['f_status'] == 2 ? '启用' : '停用'; ?>帐户
                    </button>
                    <button type="button" onclick="window.location='/tuser/deluser/<?php echo $v['Tuser']['id'];?>'">
                        删除帐户
                    </button>
                    <a href="/tuser/chpsw/<?php echo $v['Tuser']['id']; ?>" title="修改用户密码 : <?php echo $v['Tuser']['f_uname']; ?>" rel="clearbox(500,,60,,click)">修改密码</a>
                </td>
            </tr>
            <?php 
            endforeach;
            ?>
        </tbody>
    </table>
    <center>
        <?php 
        echo $paginator->first('首页').' ';
        echo $paginator->prev('<< 前页').' ';
        echo $paginator->numbers(array('separator'=>'   '));
        echo ' '.$paginator->next('后页 >>');
        echo ' '.$paginator->last("末页");
        ?>
        <br>
        <?php 
        echo $paginator->counter(array('format'=>'目前在第 %page% 页 / 总共 %pages% 页, 每页 %current% 条记录， 总共 %count% 条, 目前是第 %start% 至 %end% 条记录'));
        ?>
    </center>
</div>
